$(function(){
  const url = 'http://124.223.14.236:3001'
  const token = localStorage.getItem('token');
  console.log(token);
  // 获取接口
    axios({
    method: 'GET',
    url:  url + '/api/cart',
    headers: {
      Authorization: token,
    },
    }).then(function(res){
      console.log(res);
    })
  
})